<template>
	<view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				order_id: 0
			}
		},
		onLoad(o) {
			// 支付成功返回这个页面
			this.order_id = o.order_id
		},
		mounted() {
			this.dishOrders();
		},
		methods: {
			dishOrders: function(order_id) {
				// 生成菜品订单
				this.$api.dishOrders({
						order_id: order_id
					})
					.then(res => {
						// console.log(res);
						this.$db._NavTo('submited-order-page', {
							order_id: this.order_id
						}, this.$db.navToMethod[1])
					})
			}
		}
	}
</script>
